package cn.cque.dao;

import cn.cque.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: XWC
 * @InterfaceName: UserDao
 * @Date: 2020/10/5
 * @Time: 12:13
 * @Description:
 */
public interface UserDao {
    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    int userRegister(User user);

    List<User> findAll();
}
